﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003F7 RID: 1015
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DressRelicAvatarScRsp : IMessage<DressRelicAvatarScRsp>, IMessage, IEquatable<DressRelicAvatarScRsp>, IDeepCloneable<DressRelicAvatarScRsp>, IBufferMessage
	{
		// Token: 0x17000D07 RID: 3335
		// (get) Token: 0x06002D76 RID: 11638 RVA: 0x0007D4E0 File Offset: 0x0007B6E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DressRelicAvatarScRsp> Parser
		{
			get
			{
				return DressRelicAvatarScRsp._parser;
			}
		}

		// Token: 0x17000D08 RID: 3336
		// (get) Token: 0x06002D77 RID: 11639 RVA: 0x0007D4E7 File Offset: 0x0007B6E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DressRelicAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D09 RID: 3337
		// (get) Token: 0x06002D78 RID: 11640 RVA: 0x0007D4F9 File Offset: 0x0007B6F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DressRelicAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x06002D79 RID: 11641 RVA: 0x0007D500 File Offset: 0x0007B700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarScRsp()
		{
		}

		// Token: 0x06002D7A RID: 11642 RVA: 0x0007D508 File Offset: 0x0007B708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarScRsp(DressRelicAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002D7B RID: 11643 RVA: 0x0007D52D File Offset: 0x0007B72D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarScRsp Clone()
		{
			return new DressRelicAvatarScRsp(this);
		}

		// Token: 0x17000D0A RID: 3338
		// (get) Token: 0x06002D7C RID: 11644 RVA: 0x0007D535 File Offset: 0x0007B735
		// (set) Token: 0x06002D7D RID: 11645 RVA: 0x0007D53D File Offset: 0x0007B73D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06002D7E RID: 11646 RVA: 0x0007D546 File Offset: 0x0007B746
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DressRelicAvatarScRsp);
		}

		// Token: 0x06002D7F RID: 11647 RVA: 0x0007D554 File Offset: 0x0007B754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DressRelicAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002D80 RID: 11648 RVA: 0x0007D584 File Offset: 0x0007B784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002D81 RID: 11649 RVA: 0x0007D5C3 File Offset: 0x0007B7C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002D82 RID: 11650 RVA: 0x0007D5CB File Offset: 0x0007B7CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002D83 RID: 11651 RVA: 0x0007D5D4 File Offset: 0x0007B7D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002D84 RID: 11652 RVA: 0x0007D608 File Offset: 0x0007B808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002D85 RID: 11653 RVA: 0x0007D646 File Offset: 0x0007B846
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DressRelicAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002D86 RID: 11654 RVA: 0x0007D677 File Offset: 0x0007B877
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002D87 RID: 11655 RVA: 0x0007D680 File Offset: 0x0007B880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040011FF RID: 4607
		private static readonly MessageParser<DressRelicAvatarScRsp> _parser = new MessageParser<DressRelicAvatarScRsp>(() => new DressRelicAvatarScRsp());

		// Token: 0x04001200 RID: 4608
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001201 RID: 4609
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04001202 RID: 4610
		private uint retcode_;
	}
}
